<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>js07_event</title>
	<meta name="author" content="Stark" />
	<!-- Date: 2018-10-15 -->
	<script type="text/javascript">
		var isClick = false;
		function clickD(obj) {
			with(obj.style){
				if(!isClick){
					textDecoration = "underline";
					color = "red";
					fontSize = "18px";
				isClick = true;
				}else{
					obj.style.textDecoration = "none";
					color = "black";
					fontSize = "12px";
					isClick = false;
				}
			}
		}
	</script>
</head>
<body>
	<div onclick="clickD(this)" style="cursor: pointer">点击变大</div>
</body>
</html>

